package com.my.commonlibrary;

import android.app.Application;

import com.my.commonlibrary.database.DbInit;

import org.litepal.LitePalApplication;

import java.io.File;
import java.util.concurrent.TimeUnit;

import cn.jpush.android.api.JPushInterface;

/**
 * Author : Cooper
 * Time : 2016/9/26  11:03
 * Description : Application基本
 */

public class CommonApplication extends LitePalApplication {

    private static CommonApplication mCommonApplication;
    @Override
    public void onCreate() {
        super.onCreate();
        mCommonApplication = this;
//        init();
        initNetroid();
        JPushInterface.init(this);
        JPushInterface.setDebugMode(true);
    }



    private void initNetroid() {

    }

    public static Application getApplication() {
        return mCommonApplication;
    }

    private void init() {
        DbInit.initPerson();
    }
}
